program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  M, N, i, a, b: integer;
  fin, fout: textfile;
  mass: array of integer;
begin
  assignfile(fin, 'input.txt');
  reset(fin);
  assignfile(fout, 'output.txt');
  rewrite(fout);
  readln(fin, N, M);
  setlength(mass, N);
  for i:=0 to N-1 do                    
    mass[i]:=0;
  for i:=0 to M-1 do
  begin
    readln(fin, a, b);
    mass[a-1]:=mass[a-1]+1;
    mass[b-1]:=mass[b-1]+1;
  end;
  for i:=0 to N-1 do
    write(fout, mass[i], ' ');
  closefile(fin);
  closefile(fout);
end.
